package com.community.entity;


import com.fasterxml.jackson.annotation.JsonProperty;
import com.feng.fengDUtil.dao.annotation.Id;
import com.feng.fengDUtil.dao.annotation.Table;
import lombok.Data;

import java.util.Date;

@Data
@Table("a_order")
public class Order {

    @Id
    private Integer id;
	private String  studentId;
	/**性别*/
	private Integer sex;

	/**姓名*/
	private String name;
	/**手机号码*/
	private String phone;

	private Integer expertType;

	/**createDate*/
	private Date createDate;

	private String subjects;
	private String info1;
	private String info2;
	private String info3;
	private String info4;
	private String info5;
	private String grade;
	private Integer totalScore;
	private Integer		rankNum;

	private boolean dealStatus;
	private String dealContent;
	private Date dealTime;

	@JsonProperty
	public String[] getSubjectArray(){
		if(subjects!=null){
			return subjects.split(",");
		}else{
			return new String[]{};
		}
	}
}
